<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Switch Control Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__ctb__functions__switches.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Switch Control Functions<div class="ingroups"><a class="el" href="group__group__ctb.html">CTB          (Continuous Time Block)</a> &raquo; <a class="el" href="group__group__ctb__functions.html">Functions</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<p>This set of functions is for controlling routing switches. </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga63ec666c26a24b2668124d7ddb69d0d3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__ctb__functions__switches.html#ga63ec666c26a24b2668124d7ddb69d0d3">Cy_CTB_SetAnalogSwitch</a> (<a class="el" href="struct_c_t_b_m___type.html">CTBM_Type</a> *base, <a class="el" href="group__group__ctb__enums.html#gaec6e363ff07a3f06e9e4f1c709c1574e">cy_en_ctb_switch_register_sel_t</a> switchSelect, uint32_t switchMask, <a class="el" href="group__group__ctb__enums.html#gac8acf16f6a93889e58b75b4815fe28e1">cy_en_ctb_switch_state_t</a> state)</td></tr>
<tr class="memdesc:ga63ec666c26a24b2668124d7ddb69d0d3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provide firmware control of the CTB switches.  <a href="#ga63ec666c26a24b2668124d7ddb69d0d3">More...</a><br /></td></tr>
<tr class="separator:ga63ec666c26a24b2668124d7ddb69d0d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac46b64ef819b09e96d0d932e9d44e735"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__ctb__functions__switches.html#gac46b64ef819b09e96d0d932e9d44e735">Cy_CTB_GetAnalogSwitch</a> (const <a class="el" href="struct_c_t_b_m___type.html">CTBM_Type</a> *base, <a class="el" href="group__group__ctb__enums.html#gaec6e363ff07a3f06e9e4f1c709c1574e">cy_en_ctb_switch_register_sel_t</a> switchSelect)</td></tr>
<tr class="memdesc:gac46b64ef819b09e96d0d932e9d44e735"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the open or closed state of the specified analog switch.  <a href="#gac46b64ef819b09e96d0d932e9d44e735">More...</a><br /></td></tr>
<tr class="separator:gac46b64ef819b09e96d0d932e9d44e735"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6a3c738b405bc5ffdfd1a0464022dd43"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__ctb__functions__switches.html#ga6a3c738b405bc5ffdfd1a0464022dd43">Cy_CTB_OpenAllSwitches</a> (<a class="el" href="struct_c_t_b_m___type.html">CTBM_Type</a> *base)</td></tr>
<tr class="memdesc:ga6a3c738b405bc5ffdfd1a0464022dd43"><td class="mdescLeft">&#160;</td><td class="mdescRight">Open all the switches and disable all hardware (SAR Sequencer and DSI) control of the switches.  <a href="#ga6a3c738b405bc5ffdfd1a0464022dd43">More...</a><br /></td></tr>
<tr class="separator:ga6a3c738b405bc5ffdfd1a0464022dd43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1071f19b5c0808366de90f17e1e25b57"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__ctb__functions__switches.html#ga1071f19b5c0808366de90f17e1e25b57">Cy_CTB_EnableSarSeqCtrl</a> (<a class="el" href="struct_c_t_b_m___type.html">CTBM_Type</a> *base, <a class="el" href="group__group__ctb__enums.html#ga59d4d9205cd078c9cd13da897cff59c9">cy_en_ctb_switch_sar_seq_t</a> switchMask)</td></tr>
<tr class="memdesc:ga1071f19b5c0808366de90f17e1e25b57"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable SAR sequencer control of specified switch(es).  <a href="#ga1071f19b5c0808366de90f17e1e25b57">More...</a><br /></td></tr>
<tr class="separator:ga1071f19b5c0808366de90f17e1e25b57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga66dc5c7b4b9dcb61e2373a015e2c35e1"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__ctb__functions__switches.html#ga66dc5c7b4b9dcb61e2373a015e2c35e1">Cy_CTB_DisableSarSeqCtrl</a> (<a class="el" href="struct_c_t_b_m___type.html">CTBM_Type</a> *base, <a class="el" href="group__group__ctb__enums.html#ga59d4d9205cd078c9cd13da897cff59c9">cy_en_ctb_switch_sar_seq_t</a> switchMask)</td></tr>
<tr class="memdesc:ga66dc5c7b4b9dcb61e2373a015e2c35e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable SAR sequencer control of specified switch(es).  <a href="#ga66dc5c7b4b9dcb61e2373a015e2c35e1">More...</a><br /></td></tr>
<tr class="separator:ga66dc5c7b4b9dcb61e2373a015e2c35e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga63ec666c26a24b2668124d7ddb69d0d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga63ec666c26a24b2668124d7ddb69d0d3">&#9670;&nbsp;</a></span>Cy_CTB_SetAnalogSwitch()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_CTB_SetAnalogSwitch </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_c_t_b_m___type.html">CTBM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__ctb__enums.html#gaec6e363ff07a3f06e9e4f1c709c1574e">cy_en_ctb_switch_register_sel_t</a>&#160;</td>
          <td class="paramname"><em>switchSelect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>switchMask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__ctb__enums.html#gac8acf16f6a93889e58b75b4815fe28e1">cy_en_ctb_switch_state_t</a>&#160;</td>
          <td class="paramname"><em>state</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Provide firmware control of the CTB switches. </p>
<p>Each call to this function can open a set of switches or close a set of switches in one register.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>Pointer to structure describing registers</td></tr>
    <tr><td class="paramname">switchSelect</td><td>A value of the enum <a class="el" href="group__group__ctb__enums.html#gaec6e363ff07a3f06e9e4f1c709c1574e">cy_en_ctb_switch_register_sel_t</a> to select the switch register</td></tr>
    <tr><td class="paramname">switchMask</td><td>The mask of the switches to either open or close. The switch masks can be found in the following enums: <a class="el" href="group__group__ctb__enums.html#ga489ce541855b5cc316c20a7f801b068c">cy_en_ctb_oa0_switches_t</a>, <a class="el" href="group__group__ctb__enums.html#ga2d6abb7e9f8fb4e7c41bf1480d829eeb">cy_en_ctb_oa1_switches_t</a>, and <a class="el" href="group__group__ctb__enums.html#gaf0495f79031c0cac37acdb7830cb0149">cy_en_ctb_ctd_switches_t</a>. Use the enum that is consistent with the provided register.</td></tr>
    <tr><td class="paramname">state</td><td><a class="el" href="group__group__ctb__enums.html#ggac8acf16f6a93889e58b75b4815fe28e1a0d835ce0061b1e33561452130ffa11d5">CY_CTB_SWITCH_OPEN</a> or <a class="el" href="group__group__ctb__enums.html#ggac8acf16f6a93889e58b75b4815fe28e1ae2c904113408e3b49060ed262c68b296">CY_CTB_SWITCH_CLOSE</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: OA0 has been configured as an opamp with 10x output drive using the </span></div><div class="line"><span class="comment">     * pre-defined Cy_CTB_Fast_Opamp0_Opamp10x configuration. The 10x output has</span></div><div class="line"><span class="comment">     * a dedicated connection to Pin 9.2.</span></div><div class="line"><span class="comment">     * </span></div><div class="line"><span class="comment">     * Call SetAnalogSwitch to route the non-inverting input of OA0 to Pin 9.0</span></div><div class="line"><span class="comment">     * and the inverting input to Pin 9.1.</span></div><div class="line"><span class="comment">     *</span></div><div class="line"><span class="comment">     * Note that the CTB port may vary based on device. */</span></div><div class="line">    </div><div class="line">    <span class="comment">/* Select OA0 switch register. */</span></div><div class="line">    <a class="code" href="group__group__ctb__enums.html#gaec6e363ff07a3f06e9e4f1c709c1574e">cy_en_ctb_switch_register_sel_t</a> switchSelect = <a class="code" href="group__group__ctb__enums.html#ggaec6e363ff07a3f06e9e4f1c709c1574ea50c28d673af60be66d7e4a4902dbabd3">CY_CTB_SWITCH_OA0_SW</a>;</div><div class="line"></div><div class="line">    <span class="comment">/* Select two switches for Pin 0 and Pin 1 of the CTB port. */</span></div><div class="line">    uint32_t switchMask = <a class="code" href="group__group__ctb__enums.html#gga489ce541855b5cc316c20a7f801b068caf66ad18756866b4ee3f3cd2da7b0fcc0">CY_CTB_SW_OA0_POS_PIN0_MASK</a> | <a class="code" href="group__group__ctb__enums.html#gga489ce541855b5cc316c20a7f801b068ca44bd09da7a365d775cfc1e4dc25b214c">CY_CTB_SW_OA0_NEG_PIN1_MASK</a>;</div><div class="line"></div><div class="line">    <span class="comment">/* Set the state of the switches to closed */</span></div><div class="line">    <a class="code" href="group__group__ctb__enums.html#gac8acf16f6a93889e58b75b4815fe28e1">cy_en_ctb_switch_state_t</a> state = <a class="code" href="group__group__ctb__enums.html#ggac8acf16f6a93889e58b75b4815fe28e1ae2c904113408e3b49060ed262c68b296">CY_CTB_SWITCH_CLOSE</a>;</div><div class="line"></div><div class="line">    <a class="code" href="group__group__ctb__functions__switches.html#ga63ec666c26a24b2668124d7ddb69d0d3">Cy_CTB_SetAnalogSwitch</a>(CTBM0, switchSelect, switchMask, state);</div></div><!-- fragment -->
</div>
</div>
<a id="gac46b64ef819b09e96d0d932e9d44e735"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac46b64ef819b09e96d0d932e9d44e735">&#9670;&nbsp;</a></span>Cy_CTB_GetAnalogSwitch()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t Cy_CTB_GetAnalogSwitch </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="struct_c_t_b_m___type.html">CTBM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__ctb__enums.html#gaec6e363ff07a3f06e9e4f1c709c1574e">cy_en_ctb_switch_register_sel_t</a>&#160;</td>
          <td class="paramname"><em>switchSelect</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the open or closed state of the specified analog switch. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>Pointer to structure describing registers</td></tr>
    <tr><td class="paramname">switchSelect</td><td>A value of the enum <a class="el" href="group__group__ctb__enums.html#gaec6e363ff07a3f06e9e4f1c709c1574e">cy_en_ctb_switch_register_sel_t</a> to select the switch register</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The state of the switches in the provided register. Compare this value to the switch masks in the following enums: <a class="el" href="group__group__ctb__enums.html#ga489ce541855b5cc316c20a7f801b068c">cy_en_ctb_oa0_switches_t</a>, <a class="el" href="group__group__ctb__enums.html#ga2d6abb7e9f8fb4e7c41bf1480d829eeb">cy_en_ctb_oa1_switches_t</a>, and <a class="el" href="group__group__ctb__enums.html#gaf0495f79031c0cac37acdb7830cb0149">cy_en_ctb_ctd_switches_t</a>.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: Query if the positive terminal of Opamp0 is connected to P9.0 or not. */</span></div><div class="line">    uint32_t switchMask;</div><div class="line">    </div><div class="line">    switchMask = <a class="code" href="group__group__ctb__functions__switches.html#gac46b64ef819b09e96d0d932e9d44e735">Cy_CTB_GetAnalogSwitch</a>(CTBM0, <a class="code" href="group__group__ctb__enums.html#ggaec6e363ff07a3f06e9e4f1c709c1574ea50c28d673af60be66d7e4a4902dbabd3">CY_CTB_SWITCH_OA0_SW</a>);</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> ((uint32_t) <a class="code" href="group__group__ctb__enums.html#gga489ce541855b5cc316c20a7f801b068caf66ad18756866b4ee3f3cd2da7b0fcc0">CY_CTB_SW_OA0_POS_PIN0_MASK</a> == (switchMask &amp; ((uint32_t) <a class="code" href="group__group__ctb__enums.html#gga489ce541855b5cc316c20a7f801b068caf66ad18756866b4ee3f3cd2da7b0fcc0">CY_CTB_SW_OA0_POS_PIN0_MASK</a>)))</div><div class="line">    {</div><div class="line">        <span class="comment">/* The positive terminal of OA0 is connected to P9.0. */</span></div><div class="line">    }</div></div><!-- fragment -->
</div>
</div>
<a id="ga6a3c738b405bc5ffdfd1a0464022dd43"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6a3c738b405bc5ffdfd1a0464022dd43">&#9670;&nbsp;</a></span>Cy_CTB_OpenAllSwitches()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_CTB_OpenAllSwitches </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_c_t_b_m___type.html">CTBM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Open all the switches and disable all hardware (SAR Sequencer and DSI) control of the switches. </p>
<p>Primarily used as a quick method of re-configuring all analog connections that are sparsely closed.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>Pointer to structure describing registers</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: Reset all the switches to destroy all previous connections. */</span></div><div class="line">    </div><div class="line">    <a class="code" href="group__group__ctb__functions__switches.html#ga6a3c738b405bc5ffdfd1a0464022dd43">Cy_CTB_OpenAllSwitches</a>(CTBM0);</div></div><!-- fragment -->
</div>
</div>
<a id="ga1071f19b5c0808366de90f17e1e25b57"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1071f19b5c0808366de90f17e1e25b57">&#9670;&nbsp;</a></span>Cy_CTB_EnableSarSeqCtrl()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_CTB_EnableSarSeqCtrl </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_c_t_b_m___type.html">CTBM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__ctb__enums.html#ga59d4d9205cd078c9cd13da897cff59c9">cy_en_ctb_switch_sar_seq_t</a>&#160;</td>
          <td class="paramname"><em>switchMask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enable SAR sequencer control of specified switch(es). </p>
<p>This allows the SAR ADC to use routes through the CTB when configuring its channels.</p>
<p>There are three switches in the CTB that can be enabled by the SAR sequencer.</p><ul>
<li>D51: This switch connects the negative input of Opamp0 to the SARBUS0</li>
<li>D52: This switch connects the positive input of Opamp1 to the SARBUS0</li>
<li>D62: This switch connects the positive input of Opamp1 to the SARBUS1</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>Pointer to structure describing registers</td></tr>
    <tr><td class="paramname">switchMask</td><td>The switch or switches in which to enable SAR sequencer control. Use an enumerated value from <a class="el" href="group__group__ctb__enums.html#ga59d4d9205cd078c9cd13da897cff59c9">cy_en_ctb_switch_sar_seq_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: The SAR ADC has been configured to sample the opamp outputs.</span></div><div class="line"><span class="comment">     * Enable SAR sequencer control of all three switches in the CTB. */</span></div><div class="line">    </div><div class="line">    <a class="code" href="group__group__ctb__functions__switches.html#ga1071f19b5c0808366de90f17e1e25b57">Cy_CTB_EnableSarSeqCtrl</a>(CTBM0, <a class="code" href="group__group__ctb__enums.html#gga59d4d9205cd078c9cd13da897cff59c9ad1fdbc2f7df70acf1fcfc095b55afbbf">CY_CTB_SW_SEQ_CTRL_D51_D52_D62_MASK</a>);</div><div class="line">    </div></div><!-- fragment -->
</div>
</div>
<a id="ga66dc5c7b4b9dcb61e2373a015e2c35e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga66dc5c7b4b9dcb61e2373a015e2c35e1">&#9670;&nbsp;</a></span>Cy_CTB_DisableSarSeqCtrl()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_CTB_DisableSarSeqCtrl </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_c_t_b_m___type.html">CTBM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__ctb__enums.html#ga59d4d9205cd078c9cd13da897cff59c9">cy_en_ctb_switch_sar_seq_t</a>&#160;</td>
          <td class="paramname"><em>switchMask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disable SAR sequencer control of specified switch(es). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>Pointer to structure describing registers</td></tr>
    <tr><td class="paramname">switchMask</td><td>The switch or switches in which to disable SAR sequencer control. Use an enumerated value from <a class="el" href="group__group__ctb__enums.html#ga59d4d9205cd078c9cd13da897cff59c9">cy_en_ctb_switch_sar_seq_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd></dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: The SAR ADC no longer needs to sample the opamp outputs.</span></div><div class="line"><span class="comment">     * Disable SAR sequencer control of all three switches in the CTB. */</span></div><div class="line">    </div><div class="line">    <a class="code" href="group__group__ctb__functions__switches.html#ga66dc5c7b4b9dcb61e2373a015e2c35e1">Cy_CTB_DisableSarSeqCtrl</a>(CTBM0, <a class="code" href="group__group__ctb__enums.html#gga59d4d9205cd078c9cd13da897cff59c9ad1fdbc2f7df70acf1fcfc095b55afbbf">CY_CTB_SW_SEQ_CTRL_D51_D52_D62_MASK</a>);</div><div class="line">    </div></div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
